from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from app_settings import *

class MainPage(webapp.RequestHandler):
    def get(self):
        self.response.headers['Content-Type'] = 'text/html'
        self.response.out.write(html_code)

    def post(self):
        self.response.headers['Content-Type'] = 'text/html'
        self.response.out.write(html_code)

application = webapp.WSGIApplication(
        [('/', MainPage)], debug=True)

def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
